import ZbRequest from '../index1'

// 订单列表
export const tableDetail = (data) => ZbRequest.post({url: '/wms/query_sorders', data})

// 订单状态
export const dingdState = (data) => ZbRequest.post({url: '/general/query_dictionaries', data})
// 订单号
export const dingdOrder = (data) => ZbRequest.post({url: '/XuChun/order/GetOrderNo.aspx', data})

// 删除订单
export const deleteDd = (data) => ZbRequest.post({url: '/wms/delete_sorders', data})

// 获取详情页面数据
export const orderDetail = (data) => ZbRequest.post({url: '/wms/detail_sorder', data})

// 删除明细
export const delOrder = (data) => ZbRequest.post({url: '/wms/delete_sorderis', data})


// ///////////  收款单 接口 /////////////
// 收款单列表
export const getReceiptDetail = (data) => ZbRequest.post({url: '/general/query_receipts', data})

// 收款账户
export const query_accts = (data) => ZbRequest.post({url: '/wms/query_accts', data})

// 编辑 数据回显
export const detail_receipts = (data) => ZbRequest.post({url: '/general/detail_receipts', data})

// 编辑/新增弹出框 保存接口
export const save_receipts = (data) => ZbRequest.post({url: '/general/save_receipts', data})


//  获取欠款/累计欠款 接口
export const get_receipt_amount = (data) => ZbRequest.post({url: '/general/get_receipt_amount', data})


// 挂单  、、、、、、、、、、、

// 获取 挂单列表
export const query_gorders = (data) => ZbRequest.post({url: '/wms/query_gorders', data})

// 删除挂单
export const delete_gorders = (data) => ZbRequest.post({url: '/wms/delete_gorders', data})

// 获取挂单详情
export const detail_gorder = (data) => ZbRequest.post({url: '/wms/detail_gorder', data})